﻿<%@ Page Theme="BlueSkin" Title="نظام التدريب الالكتروني : الصفحة الرئيسية" Language="C#" MasterPageFile="~/LmsWebSite/MasterAR.master" AutoEventWireup="true" CodeFile="HomeAR.aspx.cs" Inherits="HomeAR" %>

<%@ Register src="FoldersControlAR.ascx" tagname="FoldersControlAR" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="js/jquery-1.2.1.pack.js" type="text/javascript"></script>
    <script src="js/jquery.easynews.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function () {
            var newsoption1 = {
                firstname: "mynews",
                secondname: "showhere",
                thirdname: "news_display",
                fourthname: "news_button",
                playingtitle: "Now Playing:",
                nexttitle: "&nbsp;الخبر التالي:&nbsp;",
                prevtitle: "&nbsp;الخبر السابق:&nbsp;",
                newsspeed: '8000',
                effectis: '0',
                mouseover: true,
                newscountname: "dvNewsCount",
                disablenewscount: false
            }
            $.init_news(newsoption1);
        });
</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 

 <table cellspacing="5" cellpadding="5" width="98%" style="margin-left:auto;margin-right:auto;">
              <tr>
                        <td align="right" class="heading">
                            فهرس الدورات
                        </td>
                    </tr>
                    <tr>
                        <td class="aligning">
                           
                           <uc1:FoldersControlAR ID="fcSelectFolder" runat="server" OnSelectedItemChanged="fcSelectFolder_SelectedItemChanged"   />
                           <%-- <asp:Repeater ID="grdAboutUs" runat="server"  
                                   
                                DataSourceID="odsAbout" >
                                
                                        <ItemTemplate>
                                            <p style="text-align:justify;font-size:14px;">
                                                <%# Eval("AboutAR")%>
                                            </p>
                                            <div class="clearing"></div>
                                        </ItemTemplate>
                                    
                            </asp:Repeater>--%>


                        </td>
                  </tr>
                    <tr>
                        <td height="200">
                      <table cellspacing="0" cellpadding="0" width="100%">
<tr>
                                    <td align="right" class="style1 heading">
                                        اخبار
                                    </td>
                                    <td width="25" rowspan="2" align="left" class="heading">
                                        <img src="images/headerRight.png" style="width: 7px; height: 140px" />                                    </td>
<td align="right" class="heading">
                                     أسئلة شائعة 
                                    </td>                                    
                                </tr>
                                <tr>
                                    <td align="left" class="style1" valign="top">
                                        <div class="clearing" style="height:15px;"></div>

                                        <div id="showhere" class="floating aligning direction" style="width:440px;">
                                        
                                            <div class="clearing"></div>
                                        </div>
                                        <div class="clearing"></div>
                                        <div class="aligning floating direction" id="news_button" style="width:80px;">
                                            <img src="./images/next.gif" align="absmiddle" id="news_prev"><img src="./images/pause.gif" align="absmiddle" id="news_pause"><img src="./images/prev.gif" align="absmiddle" id="news_next">
                                            <div style='display:none'>
                                                <img src="./images/next0.gif" id="news_prev0"><img src="./images/pause0.gif" id="news_pause0"><img src="./images/prev0.gif" id="news_next0">
                                            </div>
                                        </div>
                                        
                                        <div class="aligning floating direction" id="news_display" style="width:230px;font-size:12px;"></div>
                                        <div class="floating" style="font-size:1px;width:30px;height:1px;"></div>
                                        <div class="floating aligning direction" style="width:40px;font-size:12px;">
                                            خبر : 
                                        </div>
                                        <div class="aligning floating direction" id="dvNewsCount" style="width:30px;font-size:12px;"></div>

                                        <div class="clearing"></div>

                                        <div id="mynews"  style="display:none">


                                        <asp:ListView ID="lvHints" runat="server" DataSourceID="odsNews" 
                                            EnableModelValidation="True">
                                            <LayoutTemplate>
                                                <div  id="itemPlaceholder" runat="server" >
                                                </div>
                                            </LayoutTemplate>

                                            <ItemTemplate>
                                                 <div id='<%# "news" + (Container.DataItemIndex + 1).ToString() %>' class="news_style"  rel='<%#Eval("HintTitleAR") %>'>
                                            <div class="aligning direction" style="width:425px;">
                                                <span style="font-weight:bold;">&nbsp;<%#Eval("HintTitleAR") %></span><br /><%#Eval("HintDate","{0:dd/MM/yyyy}")%></div>
                                            <div class="clearing" style="height:15px;"></div>
                                            <div class="floating aligning direction" style="width:420px;margin:5px;font-size:16px;text-align:justify;height:300px;overflow:auto;padding-right:10px;">
                                            <div class="unfloating aligning direction" style="width:210px;">
                                                <img alt='<%#Eval("HintTitleAR") %>' title='<%#Eval("HintTitleAR") %>' src='<%# "getImage.ashx?image=HintsImages/" + Eval("HintImage") + "&w=200&h=200&color=white" %>'   style="margin:5px;"/>
                                            </div>
                                            
                                                <%#Eval("HintDetailsAR")%>
                                            </div>
                                            
                                                
                                            

                                            
                                                  
                                            
                                            <div class="clearing"></div>
                                        </div>
                                            </ItemTemplate>
                                                
                                        </asp:ListView>

                                       </div>


                                        <div class="clearing"></div>





                                    </td>
                                    <td align="left" valign="top">
                                    <div class="clearing" style="height:15px;"></div>

                                    <%--<table style="width:100%;font-size:14px;" class="direction aligning" >
                                                
                                  
                                  
                                  <asp:Repeater ID="rptCourses" runat="server" DataSourceID="odsCourses" OnItemDataBound="rptCourses_ItemDataBound">
                                    <ItemTemplate>
                                        <tr >
                                                <td style="padding-top:10px;">
                                                   <span class="HomeCourseLink"><table cellpadding="0" cellspacing="0"><tr><td valign="top">•&nbsp;</td><td valign="top"><%# Eval("CourseNameAR")%></td></tr></table></span>
                                                </td>
                                                <td style="padding-top:10px;">
                                                    <div class="floating" style="font-size:1px;width:5px;height:1px;"></div>
                                                </td>
                                                 
                                                 <td style="padding-top:10px;">
                                                   <asp:Label CssClass="HomeCourseLink1" runat="server" Width="100px"><a href='<%# "RegisterCourseAR.aspx?ID=" + Eval("ID") %>'>معلومات الدورة</a></asp:Label>
                                                </td>
                                                
                                                <td style="padding-top:10px;">
                                                    
                                                    <span class="HomeCourseLink1">
                                                        <asp:HyperLink ID="hlEnroll" runat="server" NavigateUrl='<%# "RegisterCourseAR.aspx?ID=" + Eval("ID") + "&Page=1" %>' >تسجيل</asp:HyperLink>
                                                    </span>
                                                    <asp:HyperLink ID="lblEnrolled" runat="server" Text="بدء الدورة" Visible="false" Width="50px"></asp:HyperLink>
                                                </td>
                                             </tr>
                                    
                                    </ItemTemplate>
                                  
                                  </asp:Repeater>
                                            

                               

                            </table>--%>

                                        
                            <asp:UpdatePanel ID="updfaq" runat="server">
                                <ContentTemplate>
                                
                               
                                        
                                        <asp:GridView ID="grdFaq" runat="server" AllowPaging="true" PageSize="4" 
                 DataKeyNames="ID" ShowHeader="false" AutoGenerateColumns="false" 
                 BorderStyle="None" onpageindexchanging="grdFaq_PageIndexChanging" GridLines="None" Width="380px" SkinID="grdNone">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                        <div class="floating aligning direction" style="width:20px;">
                            <asp:Label ID="lblQuestionHead" runat="server" Text="س" Font-Bold="true"></asp:Label>
                        </div>
                        <div class="floating direction" style="width:350px;text-align:justify;">
                            <asp:Label ID="lblQuestionBody" runat="server" Text='<%# Eval("FaqQuestionAR") %>' Font-Bold="true"></asp:Label>
                        </div>
                         <div class="clearing"></div> 
                         
                         
                         <div class="floating aligning direction" style="width:20px;">
                            <asp:Label ID="lblAnswerHead" runat="server" Text="ج" Font-Bold="true"></asp:Label>
                        </div>
                        <div class="floating direction" style="width:350px;text-align:justify;">
                            <asp:Label ID="lblAnswerBody" runat="server" Text='<%# Eval("FaqAnswerAR") %>' ForeColor="blue"></asp:Label>
                        </div>
                           
                        <div class="clearing" style="height:20px;"></div>
                        </ItemTemplate>
                    </asp:TemplateField>
                
                </Columns>
             </asp:GridView>

              </ContentTemplate>
                            </asp:UpdatePanel>
                                    

                                    </td>
                                </tr>
                            </table>
                      </td>
                  </tr>
                </table>   

<asp:ObjectDataSource ID="odsAbout" runat="server" 
        onobjectcreating="odsAbout_ObjectCreating" SelectMethod="Select" 
        TypeName="DatabaseComponent.AboutUSDB">
    <SelectParameters>
        <asp:Parameter Name="strTop" Type="String" />
        <asp:Parameter Name="strWhere" Type="String" />
        <asp:Parameter Name="whereParams" Type="Object" />
    </SelectParameters>
    </asp:ObjectDataSource>


<asp:ObjectDataSource ID="odsCourses" runat="server" SelectMethod="Select" 
        TypeName="DatabaseComponent.CoursesDB" 
        onobjectcreating="odsCourses_ObjectCreating">
    <SelectParameters>
        <asp:Parameter DefaultValue=" top 10 " Name="strTop" Type="String" />
        <asp:Parameter DefaultValue=" order by [DateOfCreation]  DESC " Name="strWhere" 
            Type="String" />
        <asp:Parameter Name="whereParams" Type="Object" />
    </SelectParameters>
    </asp:ObjectDataSource>
   
    <asp:ObjectDataSource ID="odsNews" runat="server" 
        onobjectcreating="odsNews_ObjectCreating" SelectMethod="Select" 
        TypeName="DatabaseComponent.HintsDB">
        <SelectParameters>
            <asp:Parameter DefaultValue=" top 30 " Name="strTop" Type="String" />
            <asp:Parameter DefaultValue=" order by [HintDate] DESC " Name="strWhere" 
                Type="String" />
            <asp:Parameter Name="whereParams" Type="Object" />
        </SelectParameters>
    </asp:ObjectDataSource>

    <div class="clearing" style="height:10px;"></div>
    <div class="direction aligning" 
        style="margin-left:auto;margin-right:auto;width:150px; font-size:12px;">
       <div class="floating direction">دقة العرض المثالية </div>
       <div class="floating direction">&nbsp;</div>
       <div class="floating undirection">1152 x 864</div>
       <div class="clearing"></div>
    </div>
    
</asp:Content>


